package cn.edu.bzu.manager.computer.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Controller增强器
 *
 * @author 1923111015董寺卓
 * @since 1.8
 */

@ControllerAdvice
public class Advice {

    /**
     * 错误处理
     *
     * @return JSON类型 返回值：404
     */
    @ExceptionHandler(Exception.class)
    @ResponseBody
    public String show404() {
        return "404";
    }

}
